<template>
  <div class="footer">
    <div class="row">
      <a class="col-xs-8 buy" @click="toTrade">
        <i class="iconfont icon-mairu"></i>&nbsp;模拟交易
      </a>

      <a class="col-xs-4 revoke" @click="toCancel">
        模拟撤单
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    data () {
      return {}
    },
    props:{
      userCode:{
        type:String
      }
    },
    methods:{
      toTrade(){
        this.$router.push({path: '/trade/buyin'});
      },
      toCancel(){
        this.$router.push({path: '/trade/cancel',query:{checkStatus:'2'}});//跳转直接显示可撤列表
      }
    }
  }
</script>

<style scoped>

</style>
